package com.multiplayer.service;

import java.util.List;

import com.multiplayer.entity.Reservation;
import com.multiplayer.tools.PageData;

public interface IReservationService {
	/*
	 * 调用dao方法获取预约信息
	 */
	public List<Reservation> getAllReservation(String userid);
	/*
	 * 调用dao方法取消预约
	 */
	public boolean delReservation(String userid);
	
	/**
	 * 模糊查询分页输出预约信息
	 * @param page
	 * @param pageSize
	 * @param keywords
	 * @return
	 */
	public PageData<Reservation> getReservationByPage(int page, int pageSize, String keywords);
	/**
	 * 拒绝预约
	 * @param resid
	 * @return
	 */
	public boolean rejectReservation(int resid);
	/**
	 * 拒绝预约
	 * @param resid
	 * @return
	 */
	public boolean acceptReservation(int resid);
}
